<?php
$langfile = PUNG_ROOT . '/language/' . LANGUAGE . '.php';
if(is_file($langfile))
{
	include_once($langfile);
}
else
{
	include_once(PUNG_ROOT . '/language/english.php');
}

$module_languages = scan_modules();

foreach($module_languages as $value)
{
	$file = PUNG_ROOT . '/modules/' . $value . '/language/' . $value . '_' . LANGUAGE . '.php';
	
	if(is_file($file))
	{
		include($file);
	}
}
?>